/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package http.rpc;

/**
 *
 * @author Asger
 */
public class RpcResponse {
    private Exception exception;
    private Object response;
    
    public RpcResponse() {
        
    }
    
    public boolean isException() {
        return getException() != null;
    }

    public Exception getException() {
        return exception;
    }

    public void setException(Exception exception) {
        this.exception = exception;
    }

    public Object getResponse() {
        return response;
    }

    public void setResponse(Object response) {
        this.response = response;
    }
}
